#define _CRT_SECURE_NO_WARNINGS 1

#include "SL.h"

void Test1()
{
	SLN* head = SLInit();

	SLInsert(head, 1);
	SLInsert(head, 2);
	SLInsert(head, 3);
	SLInsert(head, 4);

	SLDestroy(head);
	head = NULL;
}

void Test2()
{
	SLN* head = SLInit();

	SLInsert(head, 1);
	SLInsert(head, 2);
	SLInsert(head, 3);
	SLInsert(head, 4);

	SLErase(head, SLFind(head, 3));

	SLDestroy(head);
	head = NULL;
}

int main()
{
	Test2();

	return 0;
}